package net.schmurgon.server.domain;

import javax.persistence.Entity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.entity.RooEntity;
import javax.validation.constraints.NotNull;
import net.schmurgon.gwt.shared.CourseType;
import javax.persistence.Enumerated;

@Entity
@RooJavaBean
@RooToString
@RooEntity(identifierField = "id")
public class Course {

    private String mapUrl;

    @NotNull
    private Double distance;

    @Enumerated
    private CourseType courseType;
}
